package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class LossGoodsInfo implements Serializable {

    /**
     * status : 1
     * msg : 查詢成功
     * data : [{"id":"1944","merchant_id":"1","warehouse_id":"252","goods_class_id":"1","goods_id":"2218","sku_id":"686","goods_name":"plus會員價","sku_name":"M,50g","sku_id_list":"2,10","goods_number":"42378","sku_goods_number":"42378-2","goods_code":"1319812975","sku_code":"1319812975-2","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":0,"sku_num":"1.000","more_num":"0.000","less_num":"0.000","status":"0","cost_price":1,"add_time":"1582514094","loss_num":""},{"id":"1943","merchant_id":"1","warehouse_id":"252","goods_class_id":"1","goods_id":"2218","sku_id":"685","goods_name":"plus會員價","sku_name":"S,50g","sku_id_list":"1,10","goods_number":"42378","sku_goods_number":"42378-1","goods_code":"1319812975","sku_code":"1319812975-1","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":0,"sku_num":"1.000","more_num":"0.000","less_num":"0.000","status":"0","cost_price":1,"add_time":"1582514094","loss_num":""},{"id":"1939","merchant_id":"1","warehouse_id":"252","goods_class_id":"304","goods_id":"2214","sku_id":"683","goods_name":"脈動","sku_name":"甜","sku_id_list":"32","goods_number":"10501","sku_goods_number":"10501-2","goods_code":"1226582161","sku_code":"1226582161-2","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":"4","goods_num":0,"sku_num":"1.000","more_num":"10.000","less_num":"1.000","status":"0","cost_price":10,"add_time":"1573716285","loss_num":""},{"id":"1938","merchant_id":"1","warehouse_id":"252","goods_class_id":"304","goods_id":"2214","sku_id":"682","goods_name":"脈動","sku_name":"酸","sku_id_list":"31","goods_number":"10501","sku_goods_number":"10501-1","goods_code":"1226582161","sku_code":"1226582161-1","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":"4","goods_num":5,"sku_num":"1.000","more_num":"10.000","less_num":"1.000","status":"0","cost_price":10,"add_time":"1573716285","loss_num":""},{"id":"1937","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2213","sku_id":"681","goods_name":"脈動(箱)","sku_name":"酸","sku_id_list":"31","goods_number":"20589","sku_goods_number":"20589-2","goods_code":"1400754840","sku_code":"1400754840-2","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":98,"sku_num":"1.000","more_num":"10.000","less_num":"1.000","status":"0","cost_price":20,"add_time":"1573716223","loss_num":""},{"id":"1936","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2213","sku_id":"680","goods_name":"脈動(箱)","sku_name":"甜","sku_id_list":"32","goods_number":"20589","sku_goods_number":"20589-1","goods_code":"1400754840","sku_code":"1400754840-1","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":99,"sku_num":"1.000","more_num":"10.000","less_num":"1.000","status":"0","cost_price":20,"add_time":"1573716223","loss_num":""},{"id":"1935","merchant_id":"1","warehouse_id":"252","goods_class_id":"4","goods_id":"2212","sku_id":"679","goods_name":"脈動(箱)方法惡法紛紛分店放大法發對方對方的法沙發沙發發","sku_name":"50g","sku_id_list":"10","goods_number":"32547","sku_goods_number":"32547-1","goods_code":"1207272746","sku_code":"1207272746-1","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":100,"sku_num":"1.000","more_num":"1.000","less_num":"1.000","status":"0","cost_price":1,"add_time":"1573701959","loss_num":""},{"id":"1934","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2211","sku_id":"678","goods_name":"條碼食品","sku_name":"X","sku_id_list":"3","goods_number":"72095","sku_goods_number":"72095-2","goods_code":"1203230658","sku_code":"1203230658-2","company":"件","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":1108,"sku_num":"1.000","more_num":"1.000","less_num":"1.000","status":"0","cost_price":1,"add_time":"1573626660","loss_num":""},{"id":"1933","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2211","sku_id":"677","goods_name":"條碼食品","sku_name":"M","sku_id_list":"2","goods_number":"72095","sku_goods_number":"72095-1","goods_code":"1203230658","sku_code":"1203230658-1","company":"件","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":98,"sku_num":"1.000","more_num":"1.000","less_num":"1.000","status":"0","cost_price":1,"add_time":"1573626660","loss_num":""},{"id":"1908","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2195","sku_id":"660","goods_name":"規格商品","sku_name":"M,1kg","sku_id_list":"2,39","goods_number":"456789","sku_goods_number":"456789-1","goods_code":"852963741","sku_code":"852963741-1","company":null,"specifications":null,"attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":80,"sku_num":"1.000","more_num":null,"less_num":null,"status":"0","cost_price":2.76,"add_time":"1569036743","loss_num":""},{"id":"1907","merchant_id":"1","warehouse_id":"252","goods_class_id":"304","goods_id":"2194","sku_id":"0","goods_name":"測試","sku_name":"","sku_id_list":"","goods_number":"852963","sku_goods_number":"","goods_code":"963852741","sku_code":"","company":"","specifications":"","attribute_state":"1","pricing_method":"2","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":80,"sku_num":"1.000","more_num":"1.000","less_num":"1.000","status":"1","cost_price":1,"add_time":"1569036305","loss_num":""},{"id":"1906","merchant_id":"1","warehouse_id":"252","goods_class_id":"344","goods_id":"2193","sku_id":"659","goods_name":"芭樂-白","sku_name":"XL,黃","sku_id_list":"5,510","goods_number":"2019","sku_goods_number":"2019-2","goods_code":"723010001234256","sku_code":"","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":null,"goods_num":100,"sku_num":"2.000","more_num":"100.000","less_num":"10.000","status":"1","cost_price":1,"add_time":"1568799248","loss_num":""},{"id":"1905","merchant_id":"1","warehouse_id":"252","goods_class_id":"344","goods_id":"2193","sku_id":"658","goods_name":"芭樂-白","sku_name":"XL,紅","sku_id_list":"5,509","goods_number":"2019","sku_goods_number":"2019-1","goods_code":"723010001234256","sku_code":"","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":null,"goods_num":10,"sku_num":"1.000","more_num":"100.000","less_num":"10.000","status":"1","cost_price":2,"add_time":"1568799248","loss_num":""},{"id":"1898","merchant_id":"1","warehouse_id":"252","goods_class_id":"344","goods_id":"2188","sku_id":"0","goods_name":"蘋果","sku_name":"","sku_id_list":"","goods_number":"1369521","sku_goods_number":"","goods_code":"","sku_code":"","company":"","specifications":"","attribute_state":"1","pricing_method":"2","goods_brand_id":"44","goods_yieldly_id":null,"goods_num":176,"sku_num":"1.000","more_num":"10.000","less_num":"10.000","status":"0","cost_price":13,"add_time":"1568707120","loss_num":""},{"id":"1897","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2187","sku_id":"653","goods_name":"3333","sku_name":"M,60g","sku_id_list":"2,12","goods_number":"30662","sku_goods_number":"30662-2","goods_code":"1390906163","sku_code":"1390906163-2","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":176,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"0","cost_price":1.5,"add_time":"1568084094","loss_num":""},{"id":"1896","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2187","sku_id":"652","goods_name":"3333","sku_name":"S,60g","sku_id_list":"1,12","goods_number":"30662","sku_goods_number":"30662-1","goods_code":"1390906163","sku_code":"1390906163-1","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":186,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"0","cost_price":3,"add_time":"1568084094","loss_num":""},{"id":"1895","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2186","sku_id":"651","goods_name":"22222","sku_name":"7,酸","sku_id_list":"77,31","goods_number":"90286","sku_goods_number":"90286-3","goods_code":"1260445595","sku_code":"1260445595-3","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":186,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"1","cost_price":2,"add_time":"1568082938","loss_num":""},{"id":"1894","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2186","sku_id":"650","goods_name":"22222","sku_name":"6,酸","sku_id_list":"76,31","goods_number":"90286","sku_goods_number":"90286-2","goods_code":"1260445595","sku_code":"1260445595-2","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":186,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"1","cost_price":2,"add_time":"1568082912","loss_num":""},{"id":"1893","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2186","sku_id":"649","goods_name":"22222","sku_name":"50g,酸","sku_id_list":"10,31","goods_number":"90286","sku_goods_number":"90286-1","goods_code":"1260445595","sku_code":"1260445595-1","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":185,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"1","cost_price":2,"add_time":"1568082912","loss_num":""},{"id":"1892","merchant_id":"1","warehouse_id":"252","goods_class_id":"514","goods_id":"2185","sku_id":"648","goods_name":"測1","sku_name":"甜","sku_id_list":"32","goods_number":"8897","sku_goods_number":"74349-2","goods_code":"1339022276","sku_code":"1339022276-2","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":null,"goods_yieldly_id":null,"goods_num":187,"sku_num":"1.000","more_num":"2.000","less_num":"0.000","status":"0","cost_price":2,"add_time":"1568079831","loss_num":""}]
     */

    private int status;
    private String msg;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        if (data == null) {
            return new ArrayList<>();
        }
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 1944
         * merchant_id : 1
         * warehouse_id : 252
         * goods_class_id : 1
         * goods_id : 2218
         * sku_id : 686
         * goods_name : plus會員價
         * sku_name : M,50g
         * sku_id_list : 2,10
         * goods_number : 42378
         * sku_goods_number : 42378-2
         * goods_code : 1319812975
         * sku_code : 1319812975-2
         * company :
         * specifications :
         * attribute_state : 2
         * pricing_method : 1
         * goods_brand_id : null
         * goods_yieldly_id : null
         * goods_num : 0
         * sku_num : 1.000
         * more_num : 0.000
         * less_num : 0.000
         * status : 0
         * cost_price : 1
         * add_time : 1582514094
         * loss_num :
         */

        private String id;
        private String merchant_id;
        private String warehouse_id;
        private String goods_class_id;
        private String goods_id;
        private String sku_id;
        private String goods_name;
        private String sku_name;
        private String sku_id_list;
        private String goods_number;
        private String sku_goods_number;
        private String goods_code;
        private String sku_code;
        private String company;
        private String specifications;
        private String attribute_state;
        private String pricing_method;
        private String goods_brand_id;
        private String goods_yieldly_id;
        private double goods_num;
        private String sku_num;
        private String more_num;
        private String less_num;
        private String status;
        private double cost_price;
        private String add_time;
        private String loss_num;
        private boolean checked;
        private String remark;
        private String serial_number_state;
        private List<SerialBean> serial_list;

        public DataBean(ScanGoodInfo.DataBean dataBean) {
            this.id = dataBean.getId();
            this.merchant_id = dataBean.getMerchant_id();
            this.warehouse_id = dataBean.getWarehouse_id();
            this.goods_class_id = dataBean.getGoods_class_id();
            this.goods_id = dataBean.getGoods_id();
            this.sku_id = dataBean.getSku_id();
            this.goods_name = dataBean.getGoods_name();
            this.sku_name = dataBean.getSku_name();
            this.sku_id_list = dataBean.getSku_id_list();
            this.goods_number = dataBean.getGoods_number();
            this.sku_goods_number = dataBean.getSku_goods_number();
            this.goods_code = dataBean.getGoods_code();
            this.sku_code = dataBean.getSku_code();
            this.company = dataBean.getCompany();
            this.specifications = dataBean.getSpecifications();
            this.attribute_state = dataBean.getAttribute_state();
            this.pricing_method = dataBean.getPricing_method();
            this.goods_brand_id = dataBean.getGoods_brand_id();
            this.goods_yieldly_id = dataBean.getGoods_yieldly_id();
            this.goods_num = dataBean.getGoods_num();
            this.sku_num = dataBean.getSku_num();
            this.more_num = dataBean.getMore_num();
            this.less_num = dataBean.getLess_num();
            this.status = dataBean.getStatus();
            this.cost_price = dataBean.getCost_price();
            this.add_time = dataBean.getAdd_time();
            this.loss_num = dataBean.getLoss_num() + "";
            this.checked = true;
            this.remark = "";
        }

        public List<SerialBean> getSerialList() {
            if (serial_list == null) {
                return new ArrayList<>();
            }
            return serial_list;
        }

        public void setSerialList(List<SerialBean> serialList) {
            this.serial_list = serialList;
        }

        public String getSerial_number_state() {
            return serial_number_state == null ? "" : serial_number_state;
        }

        public void setSerial_number_state(String serial_number_state) {
            this.serial_number_state = serial_number_state;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMerchant_id() {
            return merchant_id == null ? "" : merchant_id;
        }

        public void setMerchant_id(String merchant_id) {
            this.merchant_id = merchant_id;
        }

        public String getWarehouse_id() {
            return warehouse_id == null ? "" : warehouse_id;
        }

        public void setWarehouse_id(String warehouse_id) {
            this.warehouse_id = warehouse_id;
        }

        public String getGoods_class_id() {
            return goods_class_id == null ? "" : goods_class_id;
        }

        public void setGoods_class_id(String goods_class_id) {
            this.goods_class_id = goods_class_id;
        }

        public String getGoods_id() {
            return goods_id == null ? "" : goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getSku_id() {
            return sku_id == null ? "" : sku_id;
        }

        public void setSku_id(String sku_id) {
            this.sku_id = sku_id;
        }

        public String getGoods_name() {
            return goods_name == null ? "" : goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getSku_name() {
            return sku_name == null ? "" : sku_name;
        }

        public void setSku_name(String sku_name) {
            this.sku_name = sku_name;
        }

        public String getSku_id_list() {
            return sku_id_list == null ? "" : sku_id_list;
        }

        public void setSku_id_list(String sku_id_list) {
            this.sku_id_list = sku_id_list;
        }

        public String getGoods_number() {
            return goods_number == null ? "" : goods_number;
        }

        public void setGoods_number(String goods_number) {
            this.goods_number = goods_number;
        }

        public String getSku_goods_number() {
            return sku_goods_number == null ? "" : sku_goods_number;
        }

        public void setSku_goods_number(String sku_goods_number) {
            this.sku_goods_number = sku_goods_number;
        }

        public String getGoods_code() {
            return goods_code == null ? "" : goods_code;
        }

        public void setGoods_code(String goods_code) {
            this.goods_code = goods_code;
        }

        public String getSku_code() {
            return sku_code == null ? "" : sku_code;
        }

        public void setSku_code(String sku_code) {
            this.sku_code = sku_code;
        }

        public String getCompany() {
            return company == null ? "" : company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public String getSpecifications() {
            return specifications == null ? "" : specifications;
        }

        public void setSpecifications(String specifications) {
            this.specifications = specifications;
        }

        public String getAttribute_state() {
            return attribute_state == null ? "" : attribute_state;
        }

        public void setAttribute_state(String attribute_state) {
            this.attribute_state = attribute_state;
        }

        public String getPricing_method() {
            return pricing_method == null ? "" : pricing_method;
        }

        public void setPricing_method(String pricing_method) {
            this.pricing_method = pricing_method;
        }

        public String getGoods_brand_id() {
            return goods_brand_id == null ? "" : goods_brand_id;
        }

        public void setGoods_brand_id(String goods_brand_id) {
            this.goods_brand_id = goods_brand_id;
        }

        public String getGoods_yieldly_id() {
            return goods_yieldly_id == null ? "" : goods_yieldly_id;
        }

        public void setGoods_yieldly_id(String goods_yieldly_id) {
            this.goods_yieldly_id = goods_yieldly_id;
        }

        public double getGoods_num() {
            return goods_num;
        }

        public void setGoods_num(double goods_num) {
            this.goods_num = goods_num;
        }

        public String getSku_num() {
            return sku_num == null ? "" : sku_num;
        }

        public void setSku_num(String sku_num) {
            this.sku_num = sku_num;
        }

        public String getMore_num() {
            return more_num == null ? "" : more_num;
        }

        public void setMore_num(String more_num) {
            this.more_num = more_num;
        }

        public String getLess_num() {
            return less_num == null ? "" : less_num;
        }

        public void setLess_num(String less_num) {
            this.less_num = less_num;
        }

        public String getStatus() {
            return status == null ? "" : status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public double getCost_price() {
            return cost_price;
        }

        public void setCost_price(double cost_price) {
            this.cost_price = cost_price;
        }

        public String getAdd_time() {
            return add_time == null ? "" : add_time;
        }

        public void setAdd_time(String add_time) {
            this.add_time = add_time;
        }

        public String getLoss_num() {
            return loss_num == null ? "" : loss_num;
        }

        public void setLoss_num(String loss_num) {
            this.loss_num = loss_num;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public String getRemark() {
            return remark == null ? "" : remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public static class SerialBean implements Serializable {
            private String id;
            private String main_serial_number;
            private String auxiliary_serial_number_one;
            private String auxiliary_serial_number_two;

            public SerialBean(String id,String main_serial_number, String auxiliary_serial_number_one, String auxiliary_serial_number_two) {
                this.id = id;
                this.main_serial_number = main_serial_number;
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }

            public String getId() {
                return id == null ? "" : id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getMain_serial_number() {
                return main_serial_number == null ? "" : main_serial_number;
            }

            public void setMain_serial_number(String main_serial_number) {
                this.main_serial_number = main_serial_number;
            }

            public String getAuxiliary_serial_number_one() {
                return auxiliary_serial_number_one == null ? "" : auxiliary_serial_number_one;
            }

            public void setAuxiliary_serial_number_one(String auxiliary_serial_number_one) {
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
            }

            public String getAuxiliary_serial_number_two() {
                return auxiliary_serial_number_two == null ? "" : auxiliary_serial_number_two;
            }

            public void setAuxiliary_serial_number_two(String auxiliary_serial_number_two) {
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }
        }
    }
}
